package com.tanhua.dubbo.api.mongo;

import com.tanhua.domain.mongo.Video;
import com.tanhua.vo.PageResult;

public interface VideoApi {
    void save(Video video);

    PageResult querySmallVideos(Integer page, Integer pagesize);

    PageResult queryVideos(Integer page, Integer pagesize, Long uid);
    //对小视频点赞
    Integer saveVideo(Video video, Long userId);
    //对小视频取消点赞
    Integer deleteVideo(Video video, Long userId);
    //分页查询小视频评论
    PageResult queryComments(String videoId, Integer page, Integer pagesize);
}
